package com.qr.bean.wmyw;

import java.math.BigInteger;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/13 10:22:30
 */
@ApiModel(value = "qr_generateid", description = "分布式自增主键")
@TableName(value = "qr_generateid")
public class QrGenerateid implements Serializable {
	@ApiModelProperty(value = "自增主键")
	@TableId(type = IdType.AUTO,value = "id")
	@NotNull(message = "自增主键不能为空")
	private Integer id;
	@ApiModelProperty(value = "业务标识")
	@TableField(value="business_id")
	@NotNull(message = "业务标识不能为空")
	private String business_id;
	@ApiModelProperty(value = "最大id")
	@TableField(value="max_id")
	private BigInteger max_id;
	@ApiModelProperty(value = "步长")
	@TableField(value="step")
	private Integer step;
	@ApiModelProperty(value = "描述")
	@TableField(value="description")
	private String description;
	@ApiModelProperty(value = "创建时间")
	@TableField(value="create_time")
	private Timestamp create_time;
	@ApiModelProperty(value = "更新时间")
	@TableField(value="update_time")
	private Timestamp update_time;
	@ApiModelProperty(value = "数据版本字段")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
 
	public String getBusiness_id() {
		return business_id;
	}
	public void setBusiness_id(String business_id) {
		this.business_id = business_id;
	}
 
	public BigInteger getMax_id() {
		return max_id;
	}
	public void setMax_id(BigInteger max_id) {
		this.max_id = max_id;
	}
 
	public Integer getStep() {
		return step;
	}
	public void setStep(Integer step) {
		this.step = step;
	}
 
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
 
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
 
	public Timestamp getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Timestamp update_time) {
		this.update_time = update_time;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}